import Instance from "../../../Core/Utils/Instance";
import { BaseStartView } from "../scene/login/BaseStartView";
import { WxStartView } from "../scene/login/WxStartView";
import { MainView } from "../scene/main/MainView";
import { TtStartView } from "../scene/login/TtStartView";
import { UpgradeWindow } from "../view/game/UpgradeWindow";
export default class WindowObject {
    public readonly MainView: string = `MainView`;
    public readonly WxStartView: string = `WxStartView`;
    public readonly TtStartView: string = `TtStartView`;
    public readonly BaseStartView: string = `BaseStartView`;
    public readonly UpgradeWindow: string = `UpgradeWindow`;

    private _windowMap: Object;
    public static get ins(): WindowObject {
        return Instance.get(WindowObject);
    }
    /**初始化proto映射表 */
    public init(): void {
        this._windowMap = {};
        this._windowMap[this.MainView] = MainView;
        this._windowMap[this.WxStartView] = WxStartView;
        this._windowMap[this.TtStartView] = TtStartView;
        this._windowMap[this.BaseStartView] = BaseStartView;
        this._windowMap[this.UpgradeWindow] = UpgradeWindow;
    }
    public get windowMap(): object {
        return this._windowMap;
    }
}